 function Position () {
    ;
};

//Static functions

//Returns the absolute top position of a given element
Position.findAbsoluteTop = function(element) {
    var top = 0;
    var e = element;

    while ( e ) {
        top += e.offsetTop;
        e = e.offsetParent;
    }

    return top;
};

//Returns the absolute left position of a given element
Position.findAbsoluteLeft = function(element) {
    var left = 0;
    var e = element;

    while ( e ) {
        left += e.offsetLeft;
        e = e.offsetParent;
    }

    return left;
};

